<?php
declare (strict_types=1);

namespace app\command;

use app\service\HtmlParseService;
use app\service\MarketSaveService;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
use app\service\FetchManagerService;
use think\facade\Db;
use think\helper\Str;
class Hello extends Command
{
    private $fetchService;

    protected function configure()
    {
        // 指令配置
        $this->setName('hello')
            ->setDescription('the hello command');
    }

    protected function execute(Input $input, Output $output)
    {
        set_time_limit(3600);
        //$srv = app('app\service\MarketService');
        // $rs = $srv->getUrlContents();
       // $txt = MarketSaveService::saveJson();
        for ($i=0;$i<10;$i++){
            $input=Str::random(10);
            $txtcrc64=crc64("$i s $i");
            echo "\n$input $txtcrc64";

    }
        $var= crc64Table();



        $output->writeln('');
    }
}
